<?php
class banco_model extends CI_Model {

	public function __construct() {
		parent::__construct();
	}

	public function obtenerBancos () {
		$this->db->select('ID_BANCO, NOMBRE, NUMERO');
		$this->db->from('bancos');
		$this->db->order_by("NOMBRE", "asc");
		$consulta = $this->db->get();
		return $consulta->result();
	}
}